﻿@model PagedList.IPagedList<Model.goodComment>
@using PagedList.Mvc;
@using System;

@foreach (var item in Model)
{
    <div class="pl-item">
        <div class="user-msg">
            <img src="~/Content/images/@item.users.userImage" alt="Alternate Text" />
            <p>@item.users.nickName</p>
        </div>
        <div style="display:inline-block; margin-top:20px;height:100px;border-right:1px solid #999;vertical-align:top;"></div>
        <div class="pl-content">
            <div>
                @Html.Raw(item.Comment)
            </div>
            <p class="time">@item.comTime</p>
        </div>
    </div>
}




@Html.PagedListPager(Model, page => Url.Action("CommentPatialView", "Store", new { page = page, id = ViewBag.commentId }), PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(new PagedListRenderOptions { LinkToFirstPageFormat = "首页", LinkToLastPageFormat = "尾页", MaximumPageNumbersToDisplay = 5 }, new AjaxOptions { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "ajax" }))
